package com.iyoudoock.citymine;

import android.app.Application;

import com.sunmouse.sharelib.SharePlatform;
import com.sunmouse.sharelib.ShareUtil;
import com.umeng.socialize.bean.SHARE_MEDIA;

/**
 * Created by leiyun on 2018/5/14.
 */
public class BaseApp  extends Application{


    @Override
    public void onCreate() {
        super.onCreate();
        initShare();
    }


    /**
     * init share
     */
    private void initShare() {
        SharePlatform[] platforms = new SharePlatform[]{
                new SharePlatform(SHARE_MEDIA.WEIXIN, "wx9a58236d67f4b8d9", "a902aaac99125c9af22e0230d29788f3"),
                new SharePlatform(SHARE_MEDIA.QQ, "1104934135", "64ilaOMhFcPjiypA")

        };
        ShareUtil.initSDK(this, "564fe0cce0f55a6e060054ad", platforms);
        ShareUtil.setDebugMode(true);
    }
}
